package com.ieasy.module.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ieasy.basic.dao.ExtFieldEntity;

/**
 * @描述：部门信息列表
 * @作者：杨浩泉
 * @时间：2016年11月2日
 * @版本：v1.0
 */
@Entity
@Table(name = "ieasy_sys_deptinfo_item")
public class DeptInfoItemEntity extends ExtFieldEntity {

	private String subject ;
	
	private String content ;
	
	private String personId ;
	
	private String personName ;
	
	/**
	 * 部门ID
	 */
	private OrgEntity deptid ;
	
	/**
	 * 部门ID
	 */
	private DeptInfoCategoryEntity category ;

	@ManyToOne
	@JoinColumn(name="categoryId")
	public DeptInfoCategoryEntity getCategory() {
		return category;
	}

	public void setCategory(DeptInfoCategoryEntity category) {
		this.category = category;
	}

	@ManyToOne
	@JoinColumn(name="deptid")
	public OrgEntity getDeptid() {
		return deptid;
	}

	public void setDeptid(OrgEntity deptid) {
		this.deptid = deptid;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Lob @Column(length=16777216)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPersonId() {
		return personId;
	}

	public void setPersonId(String personId) {
		this.personId = personId;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}
	
	
}
